package com.spring.springboot.config;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * 项目名称: java_algorithm
 * @ClassName MyAware
 * @Description
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2022/5/20 9:03
 */
@Component
public class MyBeanNameAware implements BeanNameAware {

    private String beanName;


    @Override
    public void setBeanName(String name) {
        this.beanName=name;
    }

    public String getBeanName(){
        return beanName;
    }
}
